import type { RouterProps } from 'react-router-dom';
import React from 'react';
import type { RouteProps, RedirectProps } from 'react-router-dom';
import BasicLayout from '@/layout/basicLayout';
// import Home from "@/view/home"

interface routes {
  redirect: boolean;
  from: string;
  to: string;
  exact: boolean;
  path: string;
  name: string;
  meta: { [key: string]: string };
  component: RouteProps['component'];
  children: routesType[];
}

export type routesType = Partial<routes>;

const routes: routesType[] = [
  {
    redirect: true,
    from: '/',
    to: '/adm/micro-editor',
    exact: true,
  },
  {
    path: '/app/micro',
    name: 'app-micro',
    component: BasicLayout,
    meta: {},
    children: [],
  },
  {
    redirect: true,
    to: '/adm/micro-editor',
  },
];

export default routes;
